package com.shanghaionstar.user.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.shanghaionstar.user.service.FeedBackService;

import java.util.List;

/**
 * Created by Mengzhou Gu on 2016/8/8.
 */
public abstract class FeedBackAdapter extends CommonAdapter<FeedBackService.ImgItem> {
    public FeedBackAdapter(Context context, List<FeedBackService.ImgItem> datas, int layoutId) {
        super(context, datas, layoutId);
    }
    @Override
    public View getView(int position, View convertView, ViewGroup parent)
    {
        ViewHolder holder = ViewHolder.get(mContext, convertView, parent,
                layoutId, position);
        convert(holder, getItem(position),position);
        return holder.getConvertView();
    }



    public abstract void convert(ViewHolder holder, FeedBackService.ImgItem t, int pos);
    @Override
    public void convert(ViewHolder holder, FeedBackService.ImgItem t) {

    }
}
